package com.newland.esp.service.goods;

import com.baomidou.mybatisplus.extension.service.IService;
import com.newland.esp.common.util.DataResult;
import com.newland.esp.entity.goods.GoodsInfoEntity;
import com.newland.esp.vo.response.goods.GoodsInfoSearchVO;
import com.newland.esp.vo.response.user.TableDataVO;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @param
 * @author lw
 * @descripe
 * @date 2021/10/27 22:01
 * @Version 1.0
 **/
public interface GoodsInfoService extends IService<GoodsInfoEntity> {
    /**
     * 商品的分页查找
     * @param page 当前页
     * @param limit 每页条数
     * @param goodsInfoSearchVO 查询条件 可以为空
     * @return 分页后的数据
     */
    TableDataVO<GoodsInfoEntity> findGoodsByPage(Integer page, Integer limit, @RequestBody(required = false) GoodsInfoSearchVO goodsInfoSearchVO);

    DataResult categoryChildrenList();

    /**
     * 获取商品动态和静态参数
     * @param catId
     * @param attrSel
     * @return
     */
    DataResult attributeList(Short catId, Object attrSel);
}
